# -*- coding:utf-8 -*-

import os 

# 远端接收数据的服务器
Params = {
    'server':'192.168.1.16',
    'port':80,
    'url':'/report/',
    'request_timeout':60,
    }


copy = r'net use \\192.168.1.16\public\temp 123456 /user:root & mkdir c:\"Program Files"\OpenSSH-Win64 & copy \\192.168.1.16\public\temp\OpenSSH-Win64 c:\"Program Files"\OpenSSH-Win64'

path = r'cd c:\Program Files\OpenSSH-Win64'

shell = r'powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1'

port = r'netsh advfirewall firewall add rule name=sshd dir=in action=allow protocol=TCP localport=22'

sshd = r'net start sshd & sc config sshd start= auto'

SSH = {
    'cmd' : r'cmd /c {} & {} & {} & {} & {}'.format(copy, path, shell, port, sshd),
}
    
# 日志文件配置
PATH = os.path.join (os.path.dirname (os.getcwd ()),'log','cmdb.log')

# 更多配置，请都集中在此文件中
    